Resets Radio, configures this device to be a Zigbee Coordinator, and displays any messages that are received. Uses the AF/ZDO interface. More...
#include "../HAL/hal.h"#include "../ZNP/znp_interface.h"#include "../ZNP/application_configuration.h"#include "../ZNP/af_zdo.h"#include "znp_example_utils.h"|
| |
| #define | USE_SECURITY_MODE_PRECONFIGURED_KEYS |
| unsigned char | key [16] = {0x44, 0x65, 0x72, 0x65, 0x6B, 0x53, 0x6D, 0x69, 0x74, 0x68, 0x44, 0x65, 0x73, 0x69, 0x67, 0x6E} |
| int | main (void) |
Resets Radio, configures this device to be a Zigbee Coordinator, and displays any messages that are received. Uses the AF/ZDO interface.
This matches example_secure_communications_ROUTER.c Get this running before the router, or else the router won't have anything to join to.
Basic Coordinator Startup with security:
YOU ACKNOWLEDGE AND AGREE THAT THE SOFTWARE AND DOCUMENTATION ARE PROVIDED “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL TEXAS INSTRUMENTS OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.
| int main | ( | void | ) |
Note: if no security option is selected then this will behave like a normal coordinator and will accept join requests from any device.
Wait until we get on the network. We will receive a ZDO_STATE_CHANGE_IND message whenever the state changes.
1.6.3